// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_b.p_a;

import android.text.TextUtils;
import com.nnee.p_a.p_a.cls_e;
import com.nnee.p_fk.p_a.cls_m;
import com.nnee.p_pr.p_atom.cls_ac;
import com.nnee.p_pr.p_atom.cls_b;
//import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.p_c.cls_l;
import com.nnee.p_pr.p_prot.cls_c;
import java.util.LinkedList;

// Referenced classes of package com.nnee.b.a:
//            j, d, g

public class cls_q extends cls_j
{

    protected cls_q(cls_u u1, int i, int k)
    {
        super(314);
        b = u1;
        c = i;
        d = k;
    }

    protected cls_q(LinkedList linkedlist, int i, int k)
    {
        super(313);
        a = new LinkedList();
        if(linkedlist != null)
            a.addAll(linkedlist);
        c = i;
        d = k;
    }

    protected static cls_q a(cls_u u1, int i, int k)
    {
        return new cls_q(u1, i, k);
    }

    public static cls_q a(LinkedList linkedlist, int i, int k)
    {
        return new cls_q(linkedlist, i, k);
    }

    private void a()
    {
        LinkedList linkedlist = a;
        
        if(a.size() > 0)
            a(((com.nnee.p_fk.p_b.cls_a) (a((cls_u)a.removeFirst(), c, d))));
        return;
    }

    private static boolean a(cls_b b1)
    {
        boolean flag;
        if(b1 == cls_b.bSinaMblog || b1 == cls_b.cNetEaseMblog)
            flag = true;
        else
            flag = false;
        return flag;
    }

    private cls_ac b(cls_b b1)
    {
        cls_ac ac1 = null;
        if(b1 != cls_b.bSinaMblog) {
        	if(b1 == cls_b.cNetEaseMblog)
            {
                com.nnee.p_b.p_b.p_e.cls_j j1 = cls_l.b(com.nnee.p_b.p_a.cls_d.h().a(), com.nnee.p_b.p_a.cls_d.h().c(), 1);
                if(j1 != null)
                    ac1 = new cls_ac(j1);
            }
        } else {
        	com.nnee.p_b.p_b.p_e.cls_j j2 = cls_l.b(com.nnee.p_b.p_a.cls_d.h().a(), com.nnee.p_b.p_a.cls_d.h().c(), 3);
            if(j2 != null)
                ac1 = new cls_ac(j2);
        }
        
        return ac1;
    }

    public void c()
    {
    	com.nnee.p_a.p_a.cls_g g1;
    	String s1=null;
    	String s =null;
    	cls_ac ac1 = null;
    	cls_b b1 =null;
        switch(n())
        {
       
        	
        case 313:
        	LinkedList linkedlist = a;
            
            if(a != null)
            {
//                for(int i = 4; a.size() > 0 && i > 0; i--)
//                    a((cls_b)a((cls_u)a.removeFirst(), c, d));

            }
        	break;
        case 314:
        	if(b == null) {} else {
        		  s = b.b(com.nnee.p_pr.p_atom.cls_g.bEAlernate);
                if(TextUtils.isEmpty(s)) {
                	s1 = b.b(com.nnee.p_pr.p_atom.cls_g.fEConver);
                    if(!TextUtils.isEmpty(s1))
                        a(cls_g.a(s1, true, false, 0, c, d));
                } else {
                	if(b.v()) {
                		g1 = null;
                		
                		
                        if(g1 == null)
                            a(cls_g.a(s, b));
                        else
                            com.nnee.p_pr.p_c.cls_c.a(com.nnee.p_b.p_a.cls_d.h().a(), b);
                
                        s1 = b.b(com.nnee.p_pr.p_atom.cls_g.fEConver);
                        if(!TextUtils.isEmpty(s1))
                            a(cls_g.a(s1, true, false, 0, c, d));
                	} else {
                		  b1 = b.be();
                        if(!a(b1)) {
                        	ac1 = null;
                        	 
                             com.nnee.p_fk.p_a.cls_k k = com.nnee.p_pr.p_prot.cls_c.b(s, ac1, com.nnee.p_b.p_a.cls_d.h().c(), com.nnee.p_b.p_a.cls_d.h().d());
                             k.g(true);
                             k.d(true);
                             g1 = com.nnee.p_a.p_a.cls_e.d(k.v());
                     
                              
                             if(g1 == null)
                                 a(cls_g.a(s, b));
                             else
                                 com.nnee.p_pr.p_c.cls_c.a(com.nnee.p_b.p_a.cls_d.h().a(), b);
                     
                             s1 = b.b(com.nnee.p_pr.p_atom.cls_g.fEConver);
                             if(!TextUtils.isEmpty(s1))
                                 a(cls_g.a(s1, true, false, 0, c, d));
                        } else {
                        	   ac1 = b(b1);
                             if(ac1 == null) {} else {
                            	 
                                 com.nnee.p_fk.p_a.cls_k k = com.nnee.p_pr.p_prot.cls_c.b(s, ac1, com.nnee.p_b.p_a.cls_d.h().c(), com.nnee.p_b.p_a.cls_d.h().d());
                                 k.g(true);
                                 k.d(true);
                                 g1 = com.nnee.p_a.p_a.cls_e.d(k.v());
                         _L12:
                                  
                                 if(g1 == null)
                                     a(cls_g.a(s, b));
                                 else
                                     com.nnee.p_pr.p_c.cls_c.a(com.nnee.p_b.p_a.cls_d.h().a(), b);
                         _L6:
                                 s1 = b.b(com.nnee.p_pr.p_atom.cls_g.fEConver);
                                 if(!TextUtils.isEmpty(s1))
                                     a(cls_g.a(s1, true, false, 0, c, d));
                             }
                        }
                	}
                }
        	}
        	break;
        default:
        	if(f())
                c(0, null);
            h();
            return;
        }
        
        if(f())
            c(0, null);
        h();
        return;
    
    }

    public void c(int i, int k, int i1, Object obj)
    {
        switch(n()){
     
        case 313:
        	a();
        	break;
   default:
        	
        	break;
        }
        if(f())
            c(0, null);
        return;
    }

    public void d(int i, int k, int i1, Object obj)
    {
        switch(n())
        {

        case 313:
        	a();
        	break;
default:
        	
        	break;
        }
        if(f())
            c(0, null);
        return;
    }

    private static final int e = 4;
    LinkedList a;
    cls_u b;
    int c;
    int d;
}
